const {env} = require('./env')
const UPLOAD_PATH = env==='dev' ? 'E:\\phpstudy_pro\\WWW\\127.0.0.78' : '/root/upload/admin-upload/ebook'
const UPLOAD_URL = env==='dev' ? 'http://127.0.0.78' : 'https://book.lshcms.com'
const OLD_UPLOAD_URL = env==='dev' ? 'http://127.0.0.78/uploads' : 'https://book.lshcms.com/uploads'
module.exports = {
    CODE_ERROR:-1,
    CODE_TOKEN_EXPIRED:-2,
    CODE_SUCCESS:0,
    debug:true,
    PWD_SALT:'admin_imooc_node',
    PRIVATE_KEY:'lshcms_study_love',
    JWT_EXPIRED:60*60,
    UPLOAD_PATH,
    MIME_TYPE_EPUB: 'application/epub+zip',
    UPLOAD_URL,
    OLD_UPLOAD_URL
}